package com.platform.service.impl;

import com.platform.dao.MerchantCoinDao;
import com.platform.entity.MerchantCoinEntity;
import com.platform.service.MerchantCoinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 商城配置:商户交易列表
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-26 14:56:56
 */
@Service("merchantCoinService")
public class MerchantCoinServiceImpl implements MerchantCoinService {
    @Autowired
    private MerchantCoinDao merchantCoinDao;

    @Override
    public MerchantCoinEntity queryObject(Long id) {
        return merchantCoinDao.queryObject(id);
    }

    @Override
    public List<MerchantCoinEntity> queryList(Map<String, Object> map) {
        return merchantCoinDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return merchantCoinDao.queryTotal(map);
    }

    @Override
    public int save(MerchantCoinEntity merchantCoin) {
        return merchantCoinDao.save(merchantCoin);
    }

    @Override
    public int update(MerchantCoinEntity merchantCoin) {
        return merchantCoinDao.update(merchantCoin);
    }

    @Override
    public int delete(Long id) {
        return merchantCoinDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return merchantCoinDao.deleteBatch(ids);
    }
}
